<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>{$name} {$site_name} - {$site_seo_title}</title>
    <meta name="keywords" content="{$site_seo_keywords}"/>
    <meta name="description" content="{$site_seo_description}"/>
    <link rel="icon" href="__PUBLIC__/simplebootx/public/images/favicon_1409967740.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="__PUBLIC__/simplebootx/public/images/favicon_1409967740.ico" type="image/x-icon" media="screen"/>
    <link href="__PUBLIC__/simplebootx/public/css/bootstrap.css" rel="stylesheet"/>
    <link rel="stylesheet" media="screen" href="__PUBLIC__/simplebootx/public/css/common.css"/>
    <link rel="stylesheet" media="screen" href="__PUBLIC__/simplebootx/public/css/main.css"/>
    <link rel="stylesheet" media="screen" href="__PUBLIC__/simplebootx/public/css/es-icon.css"/>
    <link rel="stylesheet" media="screen" href="__PUBLIC__/simplebootx/public/css/iconfont.css"/>
    <link rel="stylesheet" media="screen" href="__PUBLIC__/simplebootx/public/css/theme.css"/>
    <!--[if lt IE 9]>
    <script src="__PUBLIC__/simplebootx/public/js/html5shiv.js"></script>
    <script src="__PUBLIC__/simplebootx/public/js/respond.min.js"></script>
    <![endif]-->
</head>
<body style="padding-top: 48px">
<div class="es-wrap">
    <nav class="navbar navbar-default navbar-fixed-top" style="background: #fff">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false" style="background-color: #82d053; height: 38px; margin-top: 6px">
                    <i class="iconfont icon-dashboard">菜单</i>
                </button>

                <a class="navbar-brand" href="__ROOT__/"><img alt="Brand" class="img-responsive" src="__PUBLIC__/simplebootx/public/images/logo.png" style="margin-top: -14px; max-height: 48px"></a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav by-nav">
                    <li class=""><a href="__ROOT__/" class="">首页</a></li>
                    <volist name="top_type" id="vo">
                        <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">{$vo['name']} <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <volist name="vo['voo']" id="sub">
                                    <li><a href="{:u('course/Course/coursecenter',array('typeid'=>$sub['term_id']))}">{$sub.name}</a></li>
                                </volist>
                            </ul>
                    </volist>
                    <li class=""><a href="{:u('Portal/Index/article')}" class="">教育资讯</a></li>
                    <volist name="nav" id="vo">
                        <li class=""><a href="{$vo['href']|sp_get_href}" class="">{$vo['label']}</a></li>
                    </volist>
                    <li role="separator" class="divider"></li>
                    <form class="form-inline navbar-left" method="post" action="{:U('course/course/coursesearch')}" style="margin-top: 8px">
                        <hr class="visible-xs-block"/>
                        <div class="col-xs-8">
                            <div class="form-group">
                                <input type="text" class="form-control" placeholder="输入菜名" name="kw_name" value="{:I('get.kw_name')}">
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-default">搜索</button>
                        </div>
                    </form>
                </ul>



                <ul class="nav navbar-nav navbar-right hidden-xs">
                    <if condition="session('?user')">
                        <if condition="$user_type eq 3">
                            <li><a href="{:u('Teacher/Center/index')}" class="nav-study">我的教室</a></li>
                            <else/>
                            <li><a href="{:u('User/Center/index')}" class="nav-study">我的教室</a></li>
                        </if>
                        <li class="info-img"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                            <if condition="empty($avatar)">
                                <img src="__PUBLIC__/simplebootx/public/images/093958e59110293063.jpg" class="img-circle" style="max-height: 24px"/>
                                <else/>
                                <img src="{:sp_get_user_avatar_url($avatar)}?t={:time()}" class="img-circle" style="max-height: 24px"/>
                            </if>
                            <span>{$user_nicename}</span> <i class="iconfont icon-xia"></i> </a>
                            <ul class="dropdown-menu menu-ul" role="menu">
                                <li><a href="{:u('User/Center/setting')}"><i class="iconfont icon-shezhi"></i>个人设置</a></li>
                                <li><a href="{:u('user/center/count')}"><i class="iconfont icon-001"></i> 账户中心</a></li>
                                <!--li><a href="{:u('user/center/application')}"><i class="iconfont icon-001"></i> 成为教师</a></li-->
                                <li><a href="{:U('user/index/logout')}"><i class="iconfont icon-tuichu"></i>退出登录</a></li>
                            </ul>
                        </li>
                        <else/>
                        <li><a href="{:u('User/Login/index')}"> 登录</a></li>
                        <li><a href="{:u('User/Register/index')}">注册</a></li>
                    </if>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>